package com.sg.dto.biz.app.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc DutyBodyTargetObjectiveOrderNumListDto
 * @使用场景
 */
@Data
public class DutyBodyTargetObjectiveOrderNumListDto
        extends BaseDto
        implements Serializable {

    /**
     * 指标ID
     */
    @ApiModelProperty("指标ID")
    private String objectiveId;

    /**
     * 责任主体排序
     */
    @ApiModelProperty("责任主体排序")
    private Long dutyBodyOrderNum;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        DutyBodyTargetObjectiveOrderNumListDto that = (DutyBodyTargetObjectiveOrderNumListDto) o;
        return objectiveId == that.objectiveId && dutyBodyOrderNum == that.dutyBodyOrderNum;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), objectiveId, dutyBodyOrderNum);
    }

}
